package com.ruoyi.gams.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gams.mapper.GamsAppMapper;
import com.ruoyi.gams.domain.GamsApp;
import com.ruoyi.gams.service.IGamsAppService;

/**
 * 政务APP列Service业务层处理
 *
 * @author ruoyi
 */
@Service
public class GamsAppServiceImpl implements IGamsAppService
{
    @Autowired
    private GamsAppMapper gamsAppMapper;

    /**
     * 查询政务APP列
     *
     * @param id 政务APP列主键
     * @return 政务APP列
     */
    @Override
    public GamsApp selectGamsAppById(Integer id)
    {
        return gamsAppMapper.selectGamsAppById(id);
    }

    /**
     * 查询政务APP列列表
     *
     * @param gamsApp 政务APP列
     * @return 政务APP列
     */
    @Override
    public List<GamsApp> selectGamsAppList(GamsApp gamsApp)
    {
        return gamsAppMapper.selectGamsAppList(gamsApp);
    }

    /**
     * 新增政务APP列
     *
     * @param gamsApp 政务APP列
     * @return 结果
     */
    @Override
    public int insertGamsApp(GamsApp gamsApp)
    {
        gamsApp.setCreateTime(DateUtils.getNowDate());
        return gamsAppMapper.insertGamsApp(gamsApp);
    }

    /**
     * 修改政务APP列
     *
     * @param gamsApp 政务APP列
     * @return 结果
     */
    @Override
    public int updateGamsApp(GamsApp gamsApp)
    {
        gamsApp.setUpdateTime(DateUtils.getNowDate());
        return gamsAppMapper.updateGamsApp(gamsApp);
    }

    /**
     * 批量删除政务APP列
     *
     * @param ids 需要删除的政务APP列主键
     * @return 结果
     */
    @Override
    public int deleteGamsAppByIds(Integer[] ids)
    {
        return gamsAppMapper.deleteGamsAppByIds(ids);
    }

    /**
     * 删除政务APP列信息
     *
     * @param id 政务APP列主键
     * @return 结果
     */
    @Override
    public int deleteGamsAppById(Integer id)
    {
        return gamsAppMapper.deleteGamsAppById(id);
    }
}
